package cn.edu.zzti.base.web.struts2.action;

import java.io.Serializable;

import cn.edu.zzti.base.model.BaseEntityModel;
import cn.edu.zzti.base.service.GenericManager;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class AbstractCRUDAction<T extends BaseEntityModel, PK extends Serializable, M extends GenericManager<T, PK>>
		extends ActionSupport implements ModelDriven<T> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4349006325077467286L;
	protected PK id;
	protected T model;
	protected M manager;

	public PK getId() {
		return id;
	}

	public void setId(PK id) {
		this.id = id;
	}

	public T getModel() {
		return model;
	}

	public void setModel(T model) {
		this.model = model;
	}

	public M getManager() {
		return manager;
	}

	public void setManager(M manager) {
		this.manager = manager;
	}
}
